<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    {if $row.delivery_type == 1}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_user_id')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-delivery_user_id" data-rule="required" data-source="song/index" data-field="account" class="form-control selectpage" name="row[delivery_user_id]" type="text" value="{$row.delivery_user_id|htmlentities}" {if $row.status !=1} disabled/ {/if}>
            </div>
        </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]" type="text" value="{$row.code|htmlentities}" disabled/>
        </div>
    </div>
    {if $row.active == 1 && $row.delivery_type == 0 && $row.status == 1}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('自提核销')}:</label>
            <div class="col-xs-12 col-sm-8">
                <label for="row[status]"><input id="row[status]" name="row[status]" type="radio"  value = '3' /> 核销</label> 
            </div>
        </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_id" data-rule="required" class="form-control" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-source" data-rule="required" class="form-control selectpicker" name="row[source]" disabled/>
                {foreach name="sourceList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.source"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in}  disabled/> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_money" data-rule="required" class="form-control" step="0.01" name="row[pay_money]" type="number" value="{$row.pay_money|htmlentities}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address_id" data-rule="required" data-source="address/index" class="form-control selectpage" data-file="detail" name="row[address_id]" type="text" value="{$row.address_id|htmlentities}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_active_ticket_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_active_ticket_num" data-rule="required" class="form-control" name="row[user_active_ticket_num]" type="number" value="{$row.user_active_ticket_num|htmlentities}"  disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_buy_ticket_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_buy_ticket_num" data-rule="required" class="form-control" name="row[use_buy_ticket_num]" type="number" value="{$row.use_buy_ticket_num|htmlentities}"  disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bucket')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-bucket" class="form-control selectpicker" name="row[bucket]">
                {foreach name="bucketList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.bucket"}selected{/in}  disabled/>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-delivery_type"  class="form-control selectpicker" name="row[delivery_type]"  disabled/>
                {foreach name="deliveryTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.delivery_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delivery_money" data-rule="required" class="form-control" step="0.01" name="row[delivery_money]" type="number" value="{$row.delivery_money|htmlentities}"  disabled/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}"  disabled/>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delivery_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delivery_time]" type="text" value="{:$row.delivery_time?datetime($row.delivery_time):''}"  disabled/>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
